function DialogNote(doc, container, width, height, user, date, options, data) {
  this._doc = doc;
  this._container = container;
  this._user = user;
  this._date = date;
  this._options = options;
  this._data = data;
  this._unique = MiscUtils.unique();
  this._createElements();
  this._gui = AbsDialogNote.gui(this._unique);
};

DialogNote.prototype._createElements = function() {
  var table, tr, td;
  
  table = document.createElement('table');
  table.cellPadding = 0;
  table.cellSpacing = 0;
  table.style.width = '740px';
  this._container.appendChild(table);
  
  tr = table.insertRow(-1);
  td = tr.insertCell(-1);
  td.style.width = '740px';
  td.style.height = '35px';
  td.style.fontWeight = 'bold';
  td.style.textAlign = 'center';
  td.appendChild(document.createTextNode('Note History'));
  
  tr = table.insertRow(-1);
  td = tr.insertCell(-1);
  var main = document.createElement('table');
  main.style.width = '100%';
  main.cellPadding = 0;
  main.cellSpacing = 0;
  main.className = "tableborder";
  main.id = this._unique + '_note_table';
  td.appendChild(main);
  
  tr = main.insertRow(-1);
  tr.style.backgroundColor = '#ddd';
  td = tr.insertCell(-1);
  
  td.style.height = '23px';
  td.style.textAlign = 'left';
  td.style.width = '80px'
  td.style.padding = '0 0 0 5px';
  td.style.fontWeight = 'bold';
  td.appendChild(document.createTextNode('Date'));
  td = tr.insertCell(-1);
  td.style.textAlign = 'left';
  td.style.padding = '0 0 0 5px';
  td.style.width = '115px';
  td.style.fontWeight = 'bold';
  td.appendChild(document.createTextNode('User'));
  td = tr.insertCell(-1);
  td.style.textAlign = 'left';
  td.style.width = '510px';
  var itable = document.createElement('table');
  itable.style.width = '100%';
  itable.cellPadding = 0;
  itable.cellSpacing = 0;
  td.appendChild(itable);
  
  itr = itable.insertRow(-1);
  itd = itr.insertCell(-1);
  itd.style.textAlign = 'left';
  itd.style.width = '480px';
  itd.style.padding = '0 0 0 5px';
  itd.style.fontWeight = 'bold';
  itd.style.border = 0;
  itd.style.height = '23px';
  itd.appendChild(document.createTextNode('Content'));
  itd = itr.insertCell(-1);
  itd.style.width = '25px';
  itd.style.border = 0;
  
  td = tr.insertCell(-1);
  td.style.textAlign = 'center';
  td.style.width = '25px';
  
  tr = table.insertRow(-1);
  td = tr.insertCell(-1);
  td.style.textAlign = 'left';
  td.style.height = '30px';
  td.style.paddingTop = '7px';
  td.style.fontWeight = 'bold';
  td.appendChild(document.createTextNode('New Note'));
  
  tr = table.insertRow(-1);
  td = tr.insertCell(-1);
  var addnote = document.createElement('textarea');
  addnote.style.width = '740px';
  addnote.style.height = '100px';
  addnote.style.overflowY = 'hidden';
  addnote.id = this._unique + '_addNote_textArea';
  td.appendChild(addnote);
  
  tr = table.insertRow(-1);
  td = tr.insertCell(-1);
  td.style.height = '32px';
  td.style.verticalAlign = 'bottom';
  td.style.textAlign = 'center';
  var add = DOMUtils.createInput('', '', 'button', 'Add', null);
  add.className = "button";
  add.style.marginRight = '3px';
  add.id = this._unique + '_add_button';
  td.appendChild(add);
  var cancel = DOMUtils.createInput('', '', 'button', 'Close', null);
  cancel.className = "button";
  cancel.id = this._unique + '_close_button';
  td.appendChild(cancel);
};